import {Flex} from 'antd'
import './OrderCard.scss'

function OrderCard(props){
    return (
        <Flex className="item" flex="1" justify="space-between" align="center">
            <div className="pic">
                <img src={props.pic}  className="pic"/>
            </div>
            <div>
                <h2>{props.title}</h2>
                <p>{props.num}</p>
            </div>
        </Flex>
    )
}

export default OrderCard;